<pre class="docs-method-signature"><code>g.Rect(x, y, width, height)</code></pre>
<p>Return a new rectangle object with top left corner at point with coordinates <code>x</code>, <code>y</code> and dimensions <code>width</code> and <code>height</code>.</p>

<p>Also accepts as a single argument an object in the form <code>{ x: [number], y: [number], width: [number], height: [number] }</code>.</p>
